﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="ViewBooking.aspx.cs" Inherits="OnlineMovieTicket.WebForms.CheckBooking.ViewBooking" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ctpHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ctpBody" runat="server">
<table width="980px" cellpadding="6" cellspacing="6" class="pageBackGround" >
<tr><td>
   <h2 class="fontWhite">CHECK BOOKING</h2>
    <p  class="fontWhite">
        Please enter your NRIC. please click <a href="../BuyTicket/SearchMovieTimeTable.aspx">Buy Ticket</a> if you wish to buy the tickets.
    </p>
    <asp:Panel ID="Panel1" runat="server" GroupingText="Account Information" 
        CssClass="fontWhite" Font-Bold="True">
            <table class="fontWhite" cellpadding="6" cellspacing="6">   
                <tr><td height="5px">
                    <asp:RequiredFieldValidator ID="reqNRIC" runat="server" 
                        ControlToValidate="txtNRIC" ErrorMessage="* Please fill in NRIC"></asp:RequiredFieldValidator>
                    </td></tr>    
                    <tr><td>
                        <table>
                                <tr><td width="100px"><asp:Label ID="lblNRIC" runat="server">NRIC</asp:Label></td><td>:</td><td><asp:TextBox ID="txtNRIC" runat="server"></asp:TextBox></td>
                                <td width="100px" align="center"><asp:Button id="btnSearch" runat="server" Text="Search" CssClass="btn" onclick="btnSearch_Click"/></td></tr>             
                        </table>
                    </td></tr>              
                
                <tr><td height="5px">
                    <asp:Label ID="lblInfo" runat="server" Text="Label"></asp:Label>
                    </td></tr> 
                <tr runat="server" id="customerdata"><td>
                    <table>
                        <tr><td>Customer Name</td><td>:</td><td><asp:Label runat="server" ID="lblCustomerName"></asp:Label></td></tr>
                        <tr><td>Email</td><td>:</td><td><asp:Label runat="server" ID="lblEmail"></asp:Label></td></tr>                        
                     </table>
                </td></tr>  
                <tr><td>
                    <asp:GridView ID="grvCheckBooking" runat="server" AutoGenerateColumns="False" 
                        Width="600px" CssClass="trGrid" onrowdatabound="grvCheckBooking_RowDataBound">
                        <HeaderStyle BackColor="#cc9900"/>
                        <AlternatingRowStyle  BackColor="#767056"/>
                        <EditRowStyle BackColor="#767056" />                     
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                      <%# Container.DataItemIndex + 1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="MovieName" HeaderText="Movie Name" />                           
                            <asp:TemplateField  HeaderText="Seat(s)">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblSeat"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>                             
                        </Columns>                   
                        
                       </asp:GridView>
                    </td></tr>
            </table>
     </asp:Panel>
</td></tr>
</table>
</asp:Content>

